<template>
  <div>
      用户名：<input type="text" v-model="aaaa.username"><br>
        密码：<input type="text" v-model="aaaa.password"><br>
                    <button @click="add()">注册</button>
  </div>
</template>

<script>
export default {
    name:'aaa',
    data(){
        return{
            aaaa:{},

        }
    },
    methods:{
        add(){
            this.$axios.post(`aa/`,this.aaaa).then(item=>{
                alert('注册成功')
                this.$router.push(`bbb/`)
            })
            
        }
    }
    
    
}
</script>

<style>

</style>